@import './common.scss';
@import './vars.scss';

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
button,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  vertical-align: baseline;
  font-family: '微软雅黑', 'Microsoft Yahei', 'Hiragino Sans GB', Tahoma, Arial,
    Helvetica, sans-serif;
  font-size: 14px;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

a:visited {
  text-decoration: none;
}

nav ul {
  list-style: none;
}

li {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

input[type='text']:focus,
input[type='submit']:focus,
input[type='radio']:focus,
input[type='checkbox']:focus,
input[type='password']:focus {
  outline: none;
}

button[type='button']:focus,
button[type='submit']:focus,
input[type='reset']:focus {
  outline: none;
}

a:hover {
  cursor: pointer;
}

i {
  font-style: normal;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  margin: 0;
  font-size: 100%;
  vertical-align: middle;
}

button,
input {
  *overflow: visible;
  line-height: normal;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button,
html input[type='button'],
input[type='reset'],
input[type='submit'] {
  cursor: pointer;
  -webkit-appearance: button;
}

label,
select,
button,
input[type='button'],
input[type='reset'],
input[type='submit'],
input[type='radio'],
input[type='checkbox'] {
  cursor: pointer;
}

input[type='search'] {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-appearance: textfield;
}

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

textarea {
  overflow: auto;
  vertical-align: top;
}

u {
  display: block;
  background: no-repeat;
  background-position: 50% 50%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.after:after {
  content: '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

.before:before {
  content: '';
  display: table;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

#app {
  height: 100%;
}

[v-cloak] {
  display: none;
}

//字体
.fz18 {
  font-size: 18px;
}

.fz16 {
  font-size: 16px;
}

//正文
.fz14 {
  font-size: 14px;
}

//辅助文字
.fz12 {
  font-size: 12px;
}

//几个不同的尺度

.size0 {
  width: 120px;
}

.size1 {
  width: 150px;
}

.size2 {
  width: 200px;
}

.size3 {
  width: 250px;
}

.size4 {
  width: 300px;
}

.size5 {
  width: 350px;
}

.size6 {
  width: 400px;
}

.center {
  text-align: center;
}

//定义弹出框样式
.el-dialog {
  background-color: $color-top;
  border-radius: 5px;

  .el-dialog__header {
    padding: 24px;
    border-radius: 5px;
    background-color: $color-top;

    .el-dialog__title {
      color: $color-white;
    }

    .el-dialog__headerbtn .el-dialog__close {
      color: $color-white;
    }
  }

  .el-dialog__body {
    background-color: $content-color;
  }

  .el-dialog__footer {
    // border-radius: 5px;
    background-color: $content-color;
  }
}

//编辑dialog
.editDialog .el-dialog {
  min-width: 600px;
}

//自定义折叠面板
.el-collapse-item__header {
  padding: 0 20px;
}

.el-collapse-item__content {
  padding: 0 20px;
}

//自定义卡片
.el-card--custom {
  margin: 40px;
  position: relative;
  box-sizing: border-box;

  .el-button+.el-button {
    margin-left: 0;
  }

  table {
    .el-button+.el-button {
      margin-left: 10px;
    }
  }
}

//头部列表，进度切换
.switcher {
  height: 60px;
  line-height: 60px;
  background-color: $content-top;

  .filter {
    position: absolute;
    right: 20px;
    top: 0px;
  }
}

//input 手型
.pointer input.el-input__inner {
  cursor: pointer;
}

//table列手型
.el-table__row.hover-row {
  cursor: pointer;
}

.on .el-input__inner {
  color: red;
}

//自定义滚动条
/* 滚动条凹槽的颜色，还可以设置边框属性 */
::-webkit-scrollbar-track-piece {
  background-color: #f8f8f8;
}

/* 滚动条的宽度 */
.noScroll::-webkit-scrollbar {
  display: none;
}

.hasScroll::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

/* 滚动条的设置 */
::-webkit-scrollbar-thumb {
  background-color: #dddddd;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #535353;
}

.el-table__body-wrapper {
  @extend .hasScroll;
}
